function selectAddress() {
    var urlencode = this.shopInfo;

    uni.setStorageSync("addressInfo", JSON.stringify(urlencode));

    // #ifdef MP
    uni.chooseLocation({
        success: (res) => {
            this.option.name = res.name;
            this.option.latng = res.latitude + "," + res.longitude;
        },
        fail(res) {
            uni.getSetting({
                success: function(res) {
                    var statu = res.authSetting;
                    if (!statu["scope.userLocation"]) {
                        uni.showModal({
                            title: "是否授权当前位置",
                            content: "需要获取您的地理位置，请确认授权，否则地图功能将无法使用",
                            success(tip) {
                                if (tip.confirm) {
                                    uni.openSetting({
                                        success: function(data) {
                                            if (data.authSetting["scope.userLocation"] === true) {
                                                this.$util.showToast({
                                                    title: "授权成功",
                                                });
                                                //授权成功之后，再调用chooseLocation选择地方
                                                setTimeout(function() {
                                                    uni.chooseLocation({
                                                        success: (data) => {
                                                            this.option.name = res.name;
                                                            this.option.latng =
                                                                res.latitude + "," + res.longitude;
                                                        },
                                                    });
                                                }, 1000);
                                            }
                                        },
                                    });
                                } else {
                                    this.$util.showToast({
                                        title: "授权失败",
                                    });
                                }
                            },
                        });
                    }
                },
            });
        },
    });
    // #endif
    // #ifdef H5

    //http://admin.dbh.mei.os0.cn/

    let backurl = Config.h5Domain + "/pages/my/shop/contact";
    window.location.href =
        "https://apis.map.qq.com/tools/locpicker?search=1&type=0&backurl=" +
        encodeURIComponent(backurl) +
        "&key=" +
        Config.mpKey +
        "&referer=test";
    // #endif
}